package com.zjitc.config;

import com.zjitc.obj.Home;
import com.zjitc.obj.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/6 15:47
 * @description:
 */
@Configuration
public class JavaConfigDemo1 {

  @Bean(value = "u2")
  public User user2(){
    return new User("java congif demo2",1);
  }
  @Bean
  public User user(){
    return new User("default",10);
  }
}
